package com.icode.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.icode.common.utils.PageUtils;
import com.icode.gulimall.member.excption.PhoneExistException;
import com.icode.gulimall.member.excption.UserNameExistException;
import com.icode.gulimall.member.vo.MemberLoginVo;
import com.icode.gulimall.member.vo.MemberRegistVo;
import com.icode.gulimall.member.entity.MemberEntity;
import com.icode.gulimall.member.vo.SocialUser;

import java.util.Map;

/**
 * 会员
 *
 * @author my_code
 * @email my_code@foxmail.com
 * @date 2020-10-27 23:53:32
 */
public interface MemberService extends IService<MemberEntity> {

    MemberEntity acctLogin(MemberLoginVo loginVo);

    PageUtils queryPage(Map<String, Object> params);

    void memberRegist(MemberRegistVo registVo);

    void checkPhoneUnique(String phone) throws PhoneExistException;

    void checkUsernameUnique(String userName) throws UserNameExistException;

    MemberEntity oauthLogin(SocialUser socialUser) throws Exception;
}

